Manager

class Manager(browserDebuggerAddress: String, multiplexConnections: Boolean, eventsBufferSize: Int, domains: ProtocolDomains) : Closeable, AutoCloseable

Manager is responsible for querying, creating, closing, attaching to debuggable Targets on the controlled Chrome instance.

Constructors

Manager
Link copied to clipboard
fun Manager(browserDebuggerAddress: String, multiplexConnections: Boolean, eventsBufferSize: Int, domains: ProtocolDomains)

Types

Companion
Link copied to clipboard
object Companion

Functions

attach
Link copied to clipboard
fun attach(target: TargetInfo): Target
Attaches to given TargetInfo and returns new Target for it.
close
Link copied to clipboard
open override fun close()
Closes underlying connection to debugger.
fun close(target: Target)
Closes target and destroys browser context if present on the browser side effectively releasing all resources .
list
Link copied to clipboard
fun list(): List<TargetInfo>
Returns list of all debuggable targets on the browser side.

Sources

jvm source
Link copied to clipboard